body {
    width: 100%;
    min-width: 300px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* 自定义滚动条样式 */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb {
    background: #a8b2bf;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #8f97a4;
  }
  #searchInput {
    width: 85%;
    padding: 10px 15px;
    font-size: 16px;
    margin: 0;
    display: block;
    border: 2px solid #d5d5d8;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    box-sizing: border-box;
  }
  #searchInput:focus {
    border-color: #a8b2bf;
    box-shadow: 0 0 0 3px rgba(168,178,191,0.2);
  }
  #searchInput::placeholder {
    color: #999;
  }
  #results {
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .bookmark-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    padding-right: 40px;
  }
  .bookmark-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #a8b2bf;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .bookmark-item:hover {
    background-color: #eef0f3;
    border-bottom: 0px solid #ccc;
  }
  .bookmark-item:hover::before {
    opacity: 1;
  }
  .bookmark-item.selected {
    background-color: #eef0f3;
  }
  .bookmark-item.selected::before {
    opacity: 1;
  }
  .bookmark-content {
    flex: 1;
    min-width: 0; /* 防止文本溢出 */
  }
  .bookmark-title {
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bookmark-path {
    font-size: 12px;
    color: #8c8c8c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .favicon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 2px;
  }
  /* 添加选择器样式 */
  .search-type {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
    flex-shrink: 0;
  }
  
  .search-mode {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    color: #666;
    font-size: 14px;
    position: relative;
  }
  
  .search-mode:hover {
    background-color: #f4f5f7;
    color: #8f97a4;
  }
  
  .search-mode.active {
    background-color: #eef0f3;
    color: #6e7582;
  }
  
  .mode-icon {
    font-style: normal;
    font-size: 12px;
    color: #8c8c8c;
    background-color: #f4f5f7;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .search-mode:hover .mode-icon,
  .search-mode.active .mode-icon {
    background-color: #a8b2bf;
    color: white;
  }

  /* 添加winbar样式 */
  #winbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-top: 1px solid #e6e6e9;
  }
  #winbar .counter {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
  }
  #winbar .hint {
    font-size: 12px;
    color: #999;
  }
  /* 在现有样式中添加 */
  .click-count {
      font-size: 12px;
      color: #666;
      margin-left: 8px;
  }
  /* 添加到现有样式中 */
  .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.5);
      z-index: 1000;
  }
  
  .modal-content {
      position: relative;
      background-color: #fff;
      margin: 15% auto;
      padding: 20px;
      width: 80%;
      max-width: 500px;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .close-btn {
      position: absolute;
      right: 15px;
      top: 10px;
      font-size: 24px;
      cursor: pointer;
      color: #666;
  }
  
  .close-btn:hover {
      color: #000;
  }
  
  .info-content {
      text-align: left;
      font-size: 14px;
      line-height: 1.6;
      max-height: 400px;
      overflow-y: auto;
      overflow-x: hidden;
  }
  
  .info-content ul {
      padding-left: 20px;
      margin: 5px 0;
  }
  
  .info-content h3 {
      margin-top: 0;
      color: #1a73e8;
  }

  .delete-btn {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #666;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      opacity: 0;
      transition: all 0.3s ease;
  }

  .bookmark-item:hover .delete-btn {
      opacity: 1;
  }

  .delete-btn:hover {
      background-color: #f8e7e7;
      color: #c17f7f;
  }

  /* 添加确认对话框样式 */
  .confirm-dialog {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      z-index: 1001;
      display: none;
  }

  .confirm-dialog .buttons {
      margin-top: 15px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
  }

  .confirm-dialog button {
      padding: 6px 12px;
      border-radius: 4px;
      border: none;
      cursor: pointer;
  }

  .confirm-dialog .confirm-btn {
      background-color: #d33;
      color: white;
  }

  .confirm-dialog .cancel-btn {
      background-color: #f0f0f0;
  }

  .dialog-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 1000;
      display: none;
  }

  /* 版本图标样式 */
  .version-icon {
      cursor: pointer;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #a8b2bf;
      color: white;
      font-size: 12px;
      margin: 0 4px;
      transition: background-color 0.3s;
  }

  .version-icon:hover {
      background: #8f97a4;
  }

  /* 版本更新内容样式 */
  .version-content {
      text-align: left;
      font-size: 14px;
      line-height: 1.6;
      max-height: 60vh; /* 修改这里,使用vh单位 */
      overflow-y: auto;
      padding-right: 10px;
      margin-bottom: 10px; /* 添加底部间距 */
  }

  .version-content h2 {
      color: #1a73e8;
      font-size: 16px;
      margin: 15px 0 10px;
  }

  .version-content h3 {
      color: #444;
      font-size: 14px;
      margin: 10px 0 5px;
  }

  .version-content ul {
      margin: 5px 0;
      padding-left: 20px;
  }

  .version-content li {
      margin: 3px 0;
  }

  /* 版本日期样式 */
  .version-date {
      color: #666;
      font-size: 12px;
      margin-left: 8px;
  }

  .help-icon {
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a8b2bf;
    color: white;
    font-size: 12px;
    margin: 0 4px;
    transition: background-color 0.3s;
  }

  .help-icon:hover {
    background: #8f97a4;
  }

  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
  }

  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 70vh;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
  }

  .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
  }

  .close:hover {
    color: #000;
  }

  /* 在现有样式中添加 */
  .help-content {
      text-align: left;
      font-size: 14px;
      line-height: 1.6;
      padding: 10px;
      height: calc(70vh - 80px);
      overflow-y: auto;
  }

  .help-content h1,
  .help-content h2,
  .help-content h3 {
      color: #1a73e8;
      margin-top: 15px;
      margin-bottom: 10px;
  }

  .help-content ul,
  .help-content ol {
      padding-left: 20px;
      margin: 10px 0;
  }

  .help-content li {
      margin: 5px 0;
  }

  .help-content p {
      margin: 10px 0;
  }

  .help-content code {
      background-color: #f5f5f5;
      padding: 2px 4px;
      border-radius: 3px;
      font-family: monospace;
  }

  /* 添加修改按钮样式 */
  .edit-btn {
      position: absolute;
      right: 40px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #666;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      opacity: 0;
      transition: all 0.3s ease;
  }

  .bookmark-item:hover .edit-btn {
      opacity: 1;
  }

  .edit-btn:hover {
      background-color: #f7f4f4;
      color: #c17f7f;
  }

  /* 添加编辑模式样式 */
  .edit-title-input {
      width: calc(100% - 80px); /* 减去按钮的空间 */
      padding: 4px 8px;
      border: 2px solid #1a73e8;
      border-radius: 4px;
      font-size: 14px;
      outline: none;
  }

  .edit-title-input:focus {
      box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
  }

  .search-container {
      position: relative;
      padding: 0 10px;
      width: 100%;
      box-sizing: border-box;
      margin: 0 auto;
  }

  #searchInput {
      width: 100%;
      padding: 10px 35px 10px 15px;
      font-size: 16px;
      margin: 0;
      display: block;
      border: 2px solid #ddd;
      border-radius: 8px;
      outline: none;
      transition: all 0.3s ease;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      box-sizing: border-box;
  }

  .chrome-logo {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      pointer-events: none;
  }

  .click-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      margin-left: 8px;
      font-size: 11px;
      line-height: 1;
      color: #ffffff;
      background-color: #d5d5d8;
      border-radius: 9px;
      vertical-align: middle;
      font-weight: normal;
  }

  .click-badge:empty {
      display: none;
  }

  /* 确保标题和徽章在同一行且对齐 */
  .bookmark-title {
      display: flex;
      align-items: center;
      gap: 8px;
  }

  /* 在 style 标签中添加清除点击次数按钮的样式 */
  .clear-clicks-btn {
      position: absolute;
      right: 70px; /* 位于编辑按钮左侧 */
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #666;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      opacity: 0;
      transition: all 0.3s ease;
  }

  .bookmark-item:hover .clear-clicks-btn {
      opacity: 1;
  }

  .clear-clicks-btn:hover {
      background-color: #fff3f3;
      color: #ff4444;
  }

  /* 更新编辑按钮的位置 */
  .edit-btn {
      right: 40px;
  }

  /* 导入导出图标样式 */
  .import-export-icon {
      cursor: pointer;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #a8b2bf;
      color: white;
      font-size: 12px;
      margin: 0 4px;
      transition: background-color 0.3s;
  }

  .import-export-icon:hover {
      background: #8f97a4;
  }

  /* 导入导出弹层样式 */
  .import-export-content {
      padding: 20px;
  }

  .import-export-buttons {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
  }

  .import-export-btn {
      padding: 8px 16px;
      border: none;
      border-radius: 4px;
      background: #a8b2bf;
      color: white;
      cursor: pointer;
      transition: background-color 0.3s;
  }

  .import-export-btn:hover {
      background: #8f97a4;
  }

  .import-data-area {
      width: 100%;
      height: 200px;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      resize: vertical;
      font-family: monospace;
      margin-bottom: 10px;
  }

  .import-export-message {
      color: #666;
      font-size: 12px;
      margin-top: 10px;
  }

  .import-export-error {
      color: #d33;
  }

  .import-export-success {
      color: #4CAF50;
  }

  .search-box {
      border: 1px solid #4a90e2;  /* 更改为蓝色边框 */
      background-color: #f5f8ff;  /* 添加淡蓝色背景 */
  }
  
  .search-box:focus {
      box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);  /* 蓝色聚焦阴影 */
  }
  
  .bookmark-item:hover {
      background-color: #e8f0fe;  /* 更柔和的蓝色悬停效果 */
  }
  
  .folder {
      color: #2c5282;  /* 文件夹图标改为深蓝色 */
  }
  
  .bookmark-link {
      color: #3182ce;  /* 链接文字改为蓝色 */
  }
  
  .bookmark-link:hover {
      color: #2b6cb0;  /* 悬停时的深蓝色 */
  }
  
  #header {
      background: linear-gradient(to right, #4a90e2, #63b3ed);  /* 渐变蓝色标题栏 */
      color: white;
  }
  
  .button {
      background-color: #4a90e2;  /* 按钮背景色 */
      color: white;
      border: none;
  }
  
  .button:hover {
      background-color: #357abd;  /* 按钮悬停色 */
  }